﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPagePrivate.master" 
    AutoEventWireup="true" CodeFile="NewsletterChange.aspx.cs" Inherits="Pages_Admin_NewsletterChange" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <script language="javascript" type="text/javascript" src="/Scripts/fckeditor/fckeditor.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add NewsLetter</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    <div>
        <a href="/Pages/Admin/NewsletterList.aspx">Back to Newsletter List</a>
    </div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--NewsLetter Information Group Box Start--%>        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="General Information"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define Your Newsletter"></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:10%;" />
                        <col />                                        
                    </colgroup>
				    <tr>
					    <td>Title<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtTitle" MaxLength="250" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvTitle" runat="server"
							    ControlToValidate="txtTitle" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Title." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td colspan="2">Html<span class="requiredMark">*</span></td>					
				    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtHtml" TextMode="MultiLine" MaxLength="8000" runat="server" style="height:600px;"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvHtml" runat="server"
							    ControlToValidate="txtHtml" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Html." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
                            <script language="javascript" type="text/javascript">
                                var oFCKeditor = new FCKeditor('<%=txtHtml.ClientID %>');
                                oFCKeditor.BasePath = '/Scripts/fckeditor/';
                                oFCKeditor.Width = '100%';
                                oFCKeditor.Height = 500;
                                oFCKeditor.ToolbarSet = 'CustomeFCKEditorConfig';
                                oFCKeditor.ReplaceTextarea();
                            </script>
                        </td>
                    </tr>
				    <tr>
					    <td>Is Active?</td>
					    <td>
						    <asp:CheckBox ID="chkIsActive" runat="server" Checked="true"/>
					    </td>
				    </tr>                    
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <%--<asp:Button ID="btnList" runat="server" Text="View List" OnClick="btnList_Click" />--%>            
            </div>
        </div>
        <%--NewsLetter Information Group Box End--%>
   </asp:Panel>
</asp:Content>


